package com.vecharm.app.bean

import com.google.gson.annotations.SerializedName
import java.io.Serializable


const val IMAGES = 0
const val VIDEO = 1
const val WEb = 2

data class Goods(
        //商品id
        @SerializedName("id")
        var id: String? = null,
        //商品名称
        @SerializedName("name")
        var name: String? = null,

        //商品的类型[0:图片，1：视频，2:网页]
        @SerializedName("showType")
        var type: Int = 0,

        //商品展示url 和类型关联
        @SerializedName("showUrls")
        var showUrl: ArrayList<String>? = null,

        //商品二维码路径
        @SerializedName("QRCodeUrl")
        var qRCodeUrl: String? = null,

        //商品标题
        @SerializedName("title")
        var title: String? = null,

        //商品副标题
        @SerializedName("subTitle")
        var subTitle: String? = null,

        //商品规格
        @SerializedName("form")
        var form: String? = null,

        //商品详细描述
        @SerializedName("description")
        var description: String? = null,

        //商品缩略图
        @SerializedName("thumbnail")
        var thumbnail: String? = null,

        @SerializedName("brandId")
        var brandId: String? = null,

        @SerializedName("goodsSize")
//        var goodsSize:String = "180x100",
        var goodsSize: String = "180x${((Math.random() * 1000) % 60 + 120).toInt()}",

        //云货架的banner是否全屏
        @SerializedName("fullBanner")
        var fullBanner: Boolean = false,

        @SerializedName("detailImage")
        var detailImage: String? = null,

        @SerializedName("bannerLoopInterval")
        var bannerLoopInterval: Int = 2,

        @SerializedName("bannerAnimationDuration")
        var bannerAnimationDuration: Int = 500,

        @SerializedName("bannerDetailPagePercent")
        var bannerDetailPagePercent: Float = 0.65f

) : Serializable